<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2><?php $bid=M('bid_list')->where(array('id'=>I('bid_id')))->find();echo $bid['name'] ?>————竞价商品列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
			<a class="btn" href="{:U('addGoods',array('bid_id'=>I('bid_id')))}">新 增</a>
            <button class="btn ajax-post confirm" url="{:U('deleteTrue',array('model'=>'bid_good'))}" target-form="ids">删 除</button>
        </div>


    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">商品名称</th>
		<th class="">库存量</th>
		<th class="">起拍数</th>
		<th class="">起拍价</th>
		<th class="">最低加价</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
			<td>{$vo.good_id|getGoodName} </td>
			<td>{$vo.store_count}</td>
			<td>{$vo.start_number}</td>
			<td>{$vo.star_price}</td>
			<td>{$vo.mini_pricer}</td>
			<td>
				<if condition="$bid_info['cate_id'] eq 2">
					<a href="{:U('bidUsers',array('bid_id'=>I('get.bid_id'),'good_id'=>$vo['id']))}">用户报价列表</a>
				</if>
				<a href="{:U('editGoods?id='.$vo['id'])}">编辑</a>
			 	<a href="{:U('deleteTrue',array('model'=>'bid_good','ids'=>$vo['id']))}" class="confirm ajax-get">删除</a>
            </td>
		</tr>
		</volist>
		<else/>
		<td colspan="7" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

	<script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U("bidList")}');
	</script>
</block>
